package four;

import java.util.Scanner;

public class four {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int arr[] = new int[0];
        int c=0;
        int j;
        while(n>0)
        {
            for(int i=2;i<n;i++)
            {
                if(n%i==0)
                {
                    n/=i;
                    arr[c]=i;
                    c++;
                    break;
                }
            }
        }
        System.out.print(n+"=");
        for(j=0;j<arr.length;j++)
        {
            System.out.println(arr[j]+'*');
        }
        if(j== arr.length-1)
        {
            System.out.println(arr[j]);
        }
    }
}
